#include <simulatorV1/type/type.h>
#include <simulatorV1/lexer/id.h>

std::string Id::toString() {
    std::string res;
    res += TagName[static_cast<u32>(m_tag)];
    res += ":" + m_name;
    return res;
}